#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int a = 0, b = 0, c = 0;

    while (scanf("%d %d %d", &a, &b, &c) != EOF)
    {
        int f = 0;
        if ((a + b > c && abs(a - b) < c) || (b + c > a && abs(b - c) < a) || (a + c > b && abs(a - c) < b))
        {
            if ((a == b && b != c) || (a == c && b != c) || (b == c && a != b))
            {
                printf("Isosceles triangle!\n");
                f = 1;
            }
            else if (a == b && b == c && a == c && f == 0)
            {
                printf("Equilateral triangle!\n");
                f = 1;
            }
            else
            {
                printf("Ordinary triangle!\n");
            }
        }
        else
        {
            printf("Not a triangle!\n");
        }
    }
    return 0;
}